package com.lovo.pz.role;

import com.lovo.pz.util.GameUtil;

import java.awt.*;

/**
 * 铲子角色
 * @author 白德柯
 *
 */
public class ShovelRole extends BaseRole{
    public ShovelRole(Component component){
        super(component);
    }

    @Override
    public void initRole() {
        setRoleX(575);
        setRoleWidth(GameUtil.shovelImage.getWidth(getComponent()));
        setRoleHeight(GameUtil.shovelImage.getHeight(getComponent()));
    }

    @Override
    public void paintRole(Graphics g) {
        g.drawImage(GameUtil.shovelImage,getRoleX(),getRoleY(),getComponent());
    }

    @Override
    public void action() {

    }
}
